wasm-pack build petlib --target web --release
wasm-pack build worker --target web --release

node build_tools/replace.js petlib
node build_tools/replace.js worker

cp ./petlib/pkg/petlib.js ../js/libs/
cp ./petlib/pkg/petlib_bg.wasm ../js/libs/

cp ./worker/pkg/worker.js ../workers/libs/
cp ./worker/pkg/worker_bg.wasm ../workers/libs/